package com.tdrc.article.service;

import com.tdrc.article.beans.Article;
import com.tdrc.article.mapper.ArticleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dpf
 * @version 1.0
 * @date 2020-6-8 16:57
 * @instruction ...
 */
@Service
public class ArticleService implements IArticleService {

    @Resource
    private ArticleMapper articleMapper;

    @Override
    public void addArticle(Article article) {
        articleMapper.addArticle(article);
    }

    @Override
    public List<Article> listArticle() {
        return articleMapper.listArticle();
    }
}
